package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel("续费")
@Data
public class XuFei {

    @ApiModelProperty(value = "企业id", required = true)
    @NotNull(message = "企业id不能为空！")
    @Min(value = 1, message = "请传递正确的id")
    int eid;

    @ApiModelProperty(value = "续费时间单位是月", required = true)
    int month;

    @ApiModelProperty(value = "续费金额", required = true)
    @Min(value = 1, message = "续费金额最小1元！")
    double money;
}
